package day8.homework;

import java.io.File;
import java.io.FileFilter;
import java.util.Scanner;

class MyFileFilter implements FileFilter{

    @Override
    public boolean accept(File pathname) {
        return pathname.length()<200*1024;
    }
}

public class Task3 {

    public static void main(String[] args){

        Scanner in = new Scanner(System.in);
        String path = in.next();
        File file = new File(path);
        function(file);
    }

    public static void function(File file){
        if(!file.exists()) return;
        File[] files = file.listFiles(new MyFileFilter());
        for(File f:files){
            if (f.isDirectory()){
                function(f);
            }else {
                System.out.println(f.getName());
            }
        }
    }

}
